<?php
/**
 * 视图控制器
 */
namespace app\manage\controller\logistics;
use app\manage\controller\Base;
class Api extends Base
{

    /**物流列表**/
    public function index(){
        $data = model('Logistics')->getDatas();
        $data['code'] = 1;
        return json($data);
    }

    /**物流详情**/
    public function see(){
        $params = $this->request->param();
        $data = model('Logistics')->getOne($params['id']);
        return json(['code'=>1,'msg'=>'数据返回成功','data'=>$data]);
    }
}